import { dialog } from '@gis/lib/components/antd-dialog';

export function openCommandDispatch(options) {
  const opt = {
    center: null,
    mapConfigs: null,
    mapOptions: null,
    useXLGC: false,
    useEntity: true,
    useInstanceCameras: true,
    useVideo: false,
  };
  options = Object.assign(opt, options);
  dialog({
    content: () => import('./index.vue'),
    contentProps: options,
    dialogProps: {
      title: '指挥调度',
      width: 'max',
      height: 'fixed',
      footer: null,
      bodyStyle: { padding: 0 },
    },
  });
}
